import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/welcome'
  },
  {
    path: '/welcome',
    name: 'welcome',
    component:() => import('../views/AcademicSystem/WelcomeView.vue')
  },
  {
    path: '/major',
    name: 'major',
    component:() => import('../views/AcademicSystem/MajorView.vue')
  },
  {
    path: '/lessons/:majorId',
    name: 'lessons',
    component:() => import('../views/AcademicSystem/LessonView.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
